﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EnvoiMail.aspx.cs" Inherits="EnvoiMail" Title="Envoyer un e-mail" %>

<asp:Content ContentPlaceHolderID="contenu" Runat="Server">
    <fieldset>
        <legend>Envoyer un message</legend>
        <table>
            <tr>
                <td>
                    <asp:Label ID="lbExpediteur" runat="server" AssociatedControlID="tbExpediteur" Text="Expéditeur (De) : " />
                </td>
                <td>
                    <asp:TextBox ID="tbExpediteur" runat="server" Width="250px" />
                </td>
                <td>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                        ControlToValidate="tbExpediteur" Display="Dynamic" 
                        ErrorMessage="Email non valide" 
                        ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbDestinataire" runat="server" AssociatedControlID="tbDestinataire" Text="Destinataire (A) : " />
                </td>
                <td>
                    <asp:TextBox ID="tbDestinataire" runat="server" Width="250px" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbSujet" runat="server" AssociatedControlID="tbSujet" Text="Sujet : " />
                </td>
                <td>
                    <asp:TextBox ID="tbSujet" runat="server" Width="250px" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    <asp:Label ID="lbMessage" runat="server" AssociatedControlID="tbMessage" Text="Message : " />
                </td>
                <td>
                    <asp:TextBox ID="tbMessage" runat="server" Width="500px" Height="200px" />
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <asp:Label ID="lbStatut" runat="server"/>
                </td>
                <td align="center">
                    &nbsp;</td>
            </tr>
            <tr>                
                <td colspan="2" align="right">
                    <asp:Button ID="btFerme" runat="server" onclick="btPrecedent_Click" 
                        Text="Fermer" />&nbsp;&nbsp;
                    <asp:Button ID="btEnvoyer" runat="server" Text="Envoyer" 
                        onclick="btEnvoyer_Click" />  
                </td>                
                <td align="right">
                    &nbsp;</td>                
            </tr>
        </table>    
    </fieldset>
</asp:Content>

